<?php get_header();?>
<div class="main_title" style="margin-top:30px;margin-bottom:30px;">Thư viện võ đường</div>
<div class="cleaner" style="height:30px;"></div>
	<?php $cat=get_the_category();
		$args = array(
				'cat'=>$cat[0]->cat_ID,
			);						
		 query_posts($args);
	?>
	<?php while(have_posts()):the_post();?>
	<div class="image_wrapper indexImage"  style="float:left;margin-right:30px;">
		<a href="<?php echo the_permalink()?>">
		<?php echo the_post_thumbnail('medium',array('style'=>'width:204px;','title'=>get_the_title(),'alt'=>get_the_title()) );?>
		</a>
	</div>
	<a href="<?php echo the_permalink()?>"><span style="font-weight:bold;font-size:16px;"><?php the_title();?></span></a><br /><br />
	<span><?php echo wp_trim_words(get_the_content(),80); ?></span>
	<div class="cleaner" style="height:50px;"></div>
	<?php endwhile;?>
<?php get_footer(); ?>